/**
 * @author Mie Plougstrup, Anders Abildgaard, Bo Stokholm 
 * @Version 16-12-2014
 */
package modelLayer;

import java.util.ArrayList;

public class Customer extends BusinessPartner {

	private ArrayList<Address> adList;
	
	/**
	 * Constructor 1: For creation in ctrClass
	 * 
	 * @param businessName
	 * @param phoneNo
	 */
	public Customer(String businessName, String phoneNo){
		super(businessName, phoneNo);
		adList = new ArrayList<Address>();
	}
	
	/**
	 * Constructor 2: For creation in dbClass
	 */
	public Customer() {
		super();
	}
	
	/**
	 * Constructor 3: For creation as association
	 * 
	 * @param customerId
	 */
	public Customer(int customerId) {
		super(customerId);
	}

	public ArrayList<Address> getAdList() {
		return adList;
	}

	public void setAdList(ArrayList<Address> adList) {
		this.adList = adList;
	}
	
	public void addAddress(Address address){
		adList.add(address);
	}
	
	

}
